<?php

/**
 * 文件由尚数增量代码引擎生成
 * @author: Shann 851188611@qq.com
 */

namespace app\admin\controller;

class OrderPaymentBase
{
    public function index()
    {
        $order_payments = \app\model\OrderPayment::field(['id', 'code', 'amount', 'status_value', 'created_at']);

        $order_payments->order('id', 'desc');

        $data['orderPayments'] = $order_payments->select();

        return json(['code' => 20000, 'data' => $data]);
    }
}
